package com.migu.spms.dao.entity;

import java.util.Date;
import java.util.List;

import com.migu.spms.common.TimeTool;

import lombok.Data;

/**
 * 流程中的任务对象.
 * @author yangq
 *
 */
@Data
public class ProcessTaskDO{
	private long id;
	private String processDefinitionId;
	private String taskKey;
	private String taskName;
	private String processKey;
	private String taskType;
	private String createTime;
	private String processName;
	private Integer processVersion;
	private List<FlowDO> inCome;
	private List<FlowDO> outCome;
	public ProcessTaskDO(){}
	public ProcessTaskDO(String processDefinitionId,
			String processDefinitionKey,
			String taskKey,
			String taskName,
			String taskType,
			String	processName,
			Integer processVersion) {
		this.createTime = TimeTool.DateToString(new Date());
		this.processDefinitionId = processDefinitionId;
		this.processKey = processDefinitionKey;
		this.taskKey = taskKey;
		this.taskName = taskName;
		this.taskType = taskType;
		this.processName = processName;
		this.processVersion = processVersion;
	}
}
